package com.liu.service.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author lxh
 * @since 2020-11-29
 */
@TableName("sys_res")
@ApiModel(value="SysRes对象", description="资源表")
public class SysRes implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("pid")
    private Long pid;

    @ApiModelProperty(value = "在vue中name表示路由名称，非vue是资源名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "菜单所属端（1:运营端，2:企业端，3:APP端）")
    @TableField("source")
    private Integer source;

    @TableField("permission")
    private String permission;

    @ApiModelProperty(value = "vue中表示路由的path")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "排序")
    @TableField("sort_num")
    private Integer sortNum;

    @ApiModelProperty(value = "attach(隶属字段)1:pc端，2:app端")
    @TableField("attach")
    private Boolean attach;

    @ApiModelProperty(value = "PC菜单图片")
    @TableField("icon1")
    private String icon1;

    @ApiModelProperty(value = "APP菜单图片")
    @TableField("icon2")
    private String icon2;

    @ApiModelProperty(value = "TreeTable排序")
    @TableField("pids")
    private String pids;

    @ApiModelProperty(value = "1 菜单 2 按钮")
    @TableField("type")
    private Integer type;

    @TableField("des")
    private String des;

    @ApiModelProperty(value = "1 可用 0 不可用 -1: 删除")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }
    public Boolean getAttach() {
        return attach;
    }

    public void setAttach(Boolean attach) {
        this.attach = attach;
    }
    public String getIcon1() {
        return icon1;
    }

    public void setIcon1(String icon1) {
        this.icon1 = icon1;
    }
    public String getIcon2() {
        return icon2;
    }

    public void setIcon2(String icon2) {
        this.icon2 = icon2;
    }
    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysRes{" +
            "id=" + id +
            ", pid=" + pid +
            ", name=" + name +
            ", source=" + source +
            ", permission=" + permission +
            ", url=" + url +
            ", sortNum=" + sortNum +
            ", attach=" + attach +
            ", icon1=" + icon1 +
            ", icon2=" + icon2 +
            ", pids=" + pids +
            ", type=" + type +
            ", des=" + des +
            ", status=" + status +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
